package com.gxa.ssm251.pojo;


import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data  //get set tostring
@AllArgsConstructor  //全参构造
@NoArgsConstructor   //无参构造
@ToString(exclude = "pwd")
@ApiModel(value = "Admin管理员对象")
public class Admin implements Serializable {
    @ApiModelProperty(name = "id",value = "管理员编号")
    private Integer id;
    @ApiModelProperty(name = "name",value = "管理员账号名称")
    private String name;
    @ApiModelProperty(name = "pwd",value = "管理员密码")
    private String pwd;
    @ApiModelProperty(name = "salt",value = "管理员密码的盐")
    private String salt;
    @ApiModelProperty(name = "email",value = "管理员email")
    private String email;
    @ApiModelProperty(name = "lastTime",value = "管理员最后登录时间")
//    @JsonFormat(pattern = "YYYY-MM-dd HH:mm:ss",timezone = "GMT+8")
    @JsonFormat(pattern = "YYYY-MM-dd HH:mm:ss")
    private Date lastTime;
    @ApiModelProperty(name = "inUse",value = "管理员状态")
    private Boolean inUse;

//    private List<Limit> limits;


}
